<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>f
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>

	<head>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="MSThemeCompatible" content="no" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="Expires" content="-1" />
		<meta http-equiv="Cache-Control" content="no-cache" />
   

  
  
  <link href="<c:url value='/css/admin2.css'/>" rel="stylesheet"  type="text/css" />  

	  <link href="<c:url value='/css/admin.css'/>" rel="stylesheet"  type="text/css" />  	
		
	<link rel="stylesheet" href="<c:url value='/css/pagination.css'/>" />
         <script language="JavaScript" src="<c:url value='/js/jquery.js'/>"></script>
         <script type="text/javascript" src="<c:url value='/js/jquery.pagination.js'/>"></script>

        <script type="text/javascript">
   	
            $(document).ready(function(){
				// Create pagination element
				var count=$("#count").val();
				var currentpage=parseInt($("#currentpage").val());
		
                $("#Pagination").pagination(count, {
                   items_per_page:8,
					num_edge_entries: 2,
					current_page:currentpage,
					num_display_entries: 4,
                    callback: pageselectCallback
                });
            });
            
            
            	function pageselectCallback(page_id, jq){
            	
            //	var startrow=(page_id*10);
          // 	var endrow=(page_id*10)+10;
            //	var currentpage=page_id;
            //			$('#startrow').val((page_id*10)+1);
            	
            //			$('#endrow').val((page_id*10)+10);
            			$('#currentpage').val(page_id);
           // 	document.forms[0].action="<c:url value='/consult/consult_testPatination.action?startrow="+startrow+"&endrow="+endrow+"&currentpage="+currentpage+"'/>";
	           			document.forms['smsConfigList'].submit();
    			//		$('#Searchresult').text("Showing search results "+((page_id*10)+1)+"-"+((page_id*10)+10));
                
                }
				
						function termQuery(){
			
				 $("#querykeywords").attr("value",$("#keywords").val());
				 $("#querykeywords1").attr("value",$("#keywords1").val());
				 	 $("#currentpage").attr("value","0");
				document.forms['smsConfigList'].method="post";
				document.forms['smsConfigList'].submit();
			
			}
            
					function 	changeVisible(obj,style){
		
		var cobj=document.getElementById(obj);
		if(style==1)  cobj.style.display="block";
		else
		
			if(style==2)  cobj.style.display="none";
		
		}
			
			
			function confirmdelete()
{
if (!confirm("确认要删除吗？")) return false;
else
return true;
}
			
        </script>
        <style type="text/css">
         <!--
        * {
            padding: 0;
            margin: 0;
        }
		body,td,th {
	font-family: "宋体";
	font-size: 12px;
	line-height: 16px;
	color: #006600;
}
 
		
		h1 {
			margin-bottom:10px;
			font-size:1.5em;
		}
        
		#Searchresult {
			margin-top:15px;
			margin-bottom:15px;
			border:solid 1px #eef;
			padding:5px;
			background:#eef;
		}
		
		#footer {
			margin-top:20px;
			font-size:60%;
			color:#15B;
		}
		
		label {
			float:left;
			width:250px;
			display:block;
		}
		
		form p {
			clear:both;
		}
				.showDivCss{
		 display:none; 
		color:red; background-color:#ddeeee;
		 width:360px;
		white-space:normal;   
   word-break:break-all;   
 overflow:hidden;  
	position:absolute;
		 opacity: 0.9;  
filter: "alpha(opacity=90)"; 
filter: alpha(opacity=90);
 zoom: 1;                  /* needed in IE up to version 7, or set width or height to trigger "hasLayout" */ 

}
		
		
        -->
        </style>

		
	</head>
     
	<body >
		<c:set var="addUrl"><c:url value='/smallPic_editSmallPic.do'/></c:set>
		<c:set var="editUrl"><c:url value='/smallPic_postSmallPic.do'/></c:set>
		<c:set var="delUrl"><c:url value='/smallPic_postSmallPic.do'/></c:set>
		<c:set var="replyUrl"><c:url value='./admin/info/info_getPostReply.action'/></c:set>
		
	<div class="bian" style="width: 100%">
		<table width="100%" height="34" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEECF3">
            

		<tr>
						<td width="16" align="right">&nbsp;</td>
						<td width="27" align="left"><img src="<c:url value='/images/frame/san2.gif'/>" width="17" height="16" /></td>
						<td width="571" align="left"><span class="wen2">小图片管理</span></td>
						<td align="center" valign="middle"></td>
					</tr>
	
	
        </table>
		</div>
		<br/>
<div class="bian1"   id="ec_main_content"  style="width:99%;">
		<table width="100%" height="34" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEECF3">
            
			<tr>
		   <TD></TD>
		  <td align="right" class="wen">   </td>
              <td align="center">&nbsp; </td>
			   <td align="right" class="wen"> </td>
               <td align="center">&nbsp;</td>
               <td align="left">
                  
         
              </td>
              <td width="10%" align="right"> </td>
              <td width="20%" align="right">   <input      class="btnblue1" style="width:90px" name="btnSubmit" id="btnSubmit" value="添加小图片" type="button" onClick="window.location='${addUrl}?smallpicVO.bigpicId=${smallpicVO.bigpicId}'"/></td>
			</tr>
        </table>
		</div>
		<br/>
		<div align="right"> 
 
</div><form name="smsConfigList" action="<c:url value='/websms/SmsSend_querySmsConfig.action'/>" method="post">
      
  
  <div class="bian1"  id="ec_main_content"  style="width:99%;" >
     <div class="headZone"  id="ec_headZone" >
    
	 <input type="hidden"  id="querykeywords" name="querykeywords"  value="${querykeywords}"/>
	  <input type="hidden"  id="querykeywords1" name="querykeywords1"  value="${querykeywords1}"/>
	 <table width="100%"  class="tableRegion">
	
            <tr bgcolor="#EEF9FD">
           
		   
         <td width="10%" height="30" class="table">图片序号</td>
              <td width="12%" class="table">图片名</td>
          
			    <td width="20%"   class="table">图片地址</td>
				    <td width="11%"   class="table">是否可用</td>
         
                <td width="10%" class="table">&nbsp;</td>
            </tr>
			</table>
	</div>
			   <div style="overflow:auto;width:100%;height:277px"  class="bodyZone"  id="ec_bodyZone" >
        <table width="100%"  class="tableRegion1">   <c:set var="operatorDepId" value="${requestScope.operatorDepId}"/> 
<c:forEach items="${smallPicList}" var="item" varStatus="stat">

 
     <tr bgcolor="#ffffff">
   <td width="10%" height="20">${item.id}</td>
              <td width="12%" > 
${item.smallpicName}
			      <td width="20%"  >&nbsp; images/initpic/${item.picUrl}</td>
				     <td width="11%"  > &nbsp; 
				     			  <c:forEach items="${if_using}" var="titem" >
         <c:if  test="${titem.key==item.ifEnable}">${titem.value}</c:if>
        </c:forEach>
				     </td>
       
              <td width="10%" align="center">&nbsp;

			  <a  href="${addUrl}?smallpicVO.id=${item.id}">编辑</a> &nbsp;<a  onclick="return confirmdelete();"  href="${delUrl}?bigpicVO.id=${item.id}&addorupdate=remove">删除</a>
			  </td>
            </tr>

        </c:forEach>          
  </table>  
  </div> 
  </div>
  
  
  <div  style="margin-left:12px">
<input name="count" id="count" type="hidden" value="${totalRows}"/>
			<input name="currentpage" id="currentpage" type="hidden" value="${currentpage}"/>
			 
 			<div id="Pagination" class="pagination"></div>
 			</div>
			</form>
	</body>
</html>
